package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/adx-api/handlers"
	"wx-api/adx-api/services/se_adxplan"
)

func Route_AdxPlan(router *gin.RouterGroup) {
	api_g := router.Group("/adxplan")
	api_g.GET("/list", func(c *gin.Context) {
		se_adxplan.List(handlers.NewBaseController(c))
	})
	api_g.POST("/add", func(c *gin.Context) {
		se_adxplan.Add(handlers.NewBaseController(c))
	})
	api_g.POST("/edit", func(c *gin.Context) {
		se_adxplan.Edit(handlers.NewBaseController(c))
	})
	api_g.GET("/info", func(c *gin.Context) {
		se_adxplan.Info(handlers.NewBaseController(c))
	})
	api_g.GET("/flag", func(c *gin.Context) {
		se_adxplan.Flag(handlers.NewBaseController(c))
	})
	api_g.GET("/stats", func(c *gin.Context) {
		se_adxplan.Stats(handlers.NewBaseController(c))
	})
}
